﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="StaffSalary.aspx.cs" Inherits="SchoolAdministration.StaffSalary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadcrum" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="mainchangingpart" runat="server">
     <div class="chooseDDL">
               <span>Year</span><asp:DropDownList ID="ddlYear" runat="server"></asp:DropDownList>
            <span>Month</span> <asp:DropDownList ID="ddlmonth" runat="server" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="ddlmonth_SelectedIndexChanged"></asp:DropDownList>
                     </div>
    <div class="widget yellow">
        <div class="widget-title">
            <h4>Staff Salary</h4>
            <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <a href="javascript:;" class="icon-remove"></a>
            </span>
         </div>
         
         <div class="widget-body">
             <div class="chooseDDL"> 
   <span style="width:180px; padding-right:20px; float:left; font-size:16px;" >Select The Staff</span> 
   <asp:DropDownList ID="DDLStaff" runat="server" AutoPostBack="true" AppendDataBoundItems="true" OnSelectedIndexChanged="DDLStaff_SelectedIndexChanged" ></asp:DropDownList>
             </div>
             <span style="width:180px; padding-right:20px; float:left; font-size:16px;" >Date</span> 
             <asp:TextBox ID="txtdate" runat="server"></asp:TextBox>
               <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="ddlYear"></asp:RequiredFieldValidator><br />
              <label style="width:180px; padding-right:20px; float:left; font-size:16px;">Present Days</label>
             <asp:TextBox ID="txtPresentDays" runat="server"></asp:TextBox><br />
              <label style="width:180px; padding-right:20px; float:left; font-size:16px;">Absent Days</label>
             <asp:TextBox ID="txtAbsent" runat="server"></asp:TextBox><br />
             <label style="width:180px; padding-right:20px; float:left; font-size:16px;">Total Days</label>
             <asp:TextBox ID="txtTotal" runat="server"></asp:TextBox><br />
              <label style="width:180px; padding-right:20px; float:left; font-size:16px;">Monthly Amount</label>
             <asp:TextBox ID="TxtAmount" CssClass="text large required"  runat="server"></asp:TextBox>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TxtAmount"></asp:RequiredFieldValidator><br />
              <label style="width:180px; padding-right:20px; float:left; font-size:16px;" >Bonus Amount</label>
             <asp:TextBox ID="txtBonusamount" CssClass="text large required"  runat="server"></asp:TextBox><br />
              
             <asp:Panel ID="ploan" runat="server" Visible="False">
<label style="width:180px; padding-right:20px; float:left; font-size:16px;" >Loan Amount</label><asp:TextBox ID="txtLoan" runat="server"></asp:TextBox><br />
                <label style="width:180px; padding-right:20px; float:left; font-size:16px;" ></label> <asp:CheckBox ID="chkloan" CssClass="checkbox" runat="server" AutoPostBack="True" OnCheckedChanged="chkloan_CheckedChanged" /><asp:Label ID="lblLoan" runat="server" Text="Label">Do you want to Pay ur Loan </asp:Label><br /><br />
        <label style="width:180px; padding-right:20px; float:left; font-size:16px;" >Payment</label><asp:TextBox ID="txtLoanAmount" runat="server" Enabled="False"></asp:TextBox>
             </asp:Panel>
             
             <label style="width:180px; padding-right:20px; float:left; font-size:16px;"></label><asp:Button ID="BtnLoan" CssClass="submit" runat="server"  Text="Save" OnClick="BtnLoan_Click" /><asp:Button ID="btnView" CssClass="submit" runat="server"  Text="View" OnClick="btnView_Click" />
            <asp:Label ID="lblsuccess" runat="server" Text="Label"></asp:Label> </div>
        </div>
</asp:Content>
